package daolun;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class CalTest {

	Cal a = new Cal();
	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void testMax() {
		assertEquals(4,a.max(3,4));
	}

	@Test
	public void testMaxSubArr() {
		int[] arr = {3,3,4};
		assertEquals(10,a.maxSubArr(arr));
	}

}
